﻿//using System.Collections.Generic;
//using System.Drawing;
//using System.Drawing.Drawing2D;
//using System.Windows.Forms;

//namespace HMaker.Controls
//{
//    /// <summary>
//    /// 椭圆形控件
//    /// </summary>
//    public class ShapeEllipse : ShapeControl
//    {
//        public ShapeEllipse(OriginPos origin = null) : base(origin)
//        {
//            Size = new Size(50, 50);
//            Location = Point.Empty;

//        }

//        public ShapeEllipse(Point centerPoint, Size size, OriginPos origin = null) : base(origin)
//        {
//            Size = size;
//            centerPoint.Offset(-size.Width / 2, -size.Height / 2);
//            Location = centerPoint;

//        }

//        public ShapeEllipse(Rectangle rect, OriginPos origin = null) : base(origin)
//        {
//            Size = rect.Size;
//            Location = rect.Location;

//        }


//        public override KeyValuePair<string, string> ShapeDescription => new KeyValuePair<string, string>("SHAPEELLIPSE", $"{Common.MakeString(IsBound ? RelativeCenterPos : CenterPos)},{Common.MakeString(Size)}");

//        public override ShapeControl Clone()
//        {
//            return new ShapeEllipse(CenterPos, Size, OriginPos);
//        }

//        protected override GraphicsPath OnDrawRegion()
//        {
//            GraphicsPath path = new GraphicsPath();
//            path.AddEllipse(new Rectangle(Point.Empty, FrameSize));
//            return path;
//        }

//        protected override void OnPaint(PaintEventArgs e)
//        {
//            e.Graphics.FillEllipse(ForeBrush, new Rectangle(Point.Empty, FrameSize));
//            base.OnPaint(e);
//        }
//    }

//}
